/*
 * FPS.h a class totaly based on http://www.sdltutorials.com/sdl-collision. Thank guys, u are fucking awesome =]
 *
 *  Created on: Dec 12, 2012
 *      Author: http://www.sdltutorials.com/sdl-collision
 */

#ifndef FPS_H_
#define FPS_H_

#include "SDL/SDL.h"

class FPS {

	public:
		static FPS FPSControl;

	private:
		unsigned int OldTime;
		int LastTime;

		float SpeedFactor;

		int NumFrames;
		int Frames;

	public:
		FPS();
		virtual ~FPS();
		void    update();

	public:
		int     getFPS();
		float   getSpeedFactor();

};

#endif /* FPS_H_ */
